<?php
	session_start();
	session_destroy();
	session_regenerate_id(); 
	header("Refresh: 1;url=main.php");
	die("Click <a href='main.php'>here</a> if your browser cannot redirect in 5 seconds.");
?>